95b93a8c74cfd277217f2a402009e005805c42d0,cypher-plugin/src/test/java/org/neo4j/server/plugin/cypher/CypherPluginFunctionalTest.java,CypherPluginFunctionalTest,testPropertyColumn,#,61
Before Change
@REL( start = "I", end = "you", type = "know", properties = {} ) } )
public void testPropertyColumn() throws UnsupportedEncodingException
{
String script = "start x = node(" + data.get().get( "I" ).getId()
+ ") match (x) -[r]-> (n) return type(r), n.name?, n.age?";
gen.get().expectedStatus( Status.OK.getStatusCode() ).payload(
"{\"query\": \"" + script + "\"}" ).description(
AsciidocHelper.createCypherSnippet( script ) );
String response = gen.get().post( ENDPOINT ).entity();
assertTrue( response.contains( "you" ) );
assertTrue( response.contains( "him" ) );
After Change
public void testPropertyColumn() throws UnsupportedEncodingException {
String script = createScript( "start x = node(%I%) match (x) -[r]-> (n) return type(r), n.name?, n.age?" );
String response = doRestCall( script, Status.OK );
assertThat( response, containsString( "you" ) );
assertThat( response, containsString( "him" ) );